package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Yhcdhp generated by hbm2java
 */
@Entity
@Table(name = "yhcdhp")
public class Yhcdhp implements java.io.Serializable
{

    private Long id;
    private int version;
    private String username;
    private Jbqk jbqk;
    private String operation;
    private Date optdate;
    private String jbh;
    private BigDecimal je;
    private Double bzjbl;
    private String qzrq;
    private String dbfs;
    private String dbw;
    private BigDecimal zmjz;
    private BigDecimal pgjz;
    private String dbdw;
    private String fdbdw;
    private Short xh;

    public Yhcdhp()
    {
    }

    public Yhcdhp( Long id )
    {
        this.id = id;
    }

    public Yhcdhp( Long id,
                   String username,
                   String operation,
                   Jbqk jbqk,
                   Date optdate,
                   String jbh,
                   BigDecimal je,
                   Double bzjbl,
                   String qzrq,
                   String dbfs,
                   String dbw,
                   BigDecimal zmjz,
                   BigDecimal pgjz,
                   String dbdw,
                   String fdbdw,
                   Short xh )
    {
        this.id = id;
        this.username = username;
        this.operation = operation;
        this.jbqk = jbqk;
        this.optdate = optdate;
        this.jbh = jbh;
        this.je = je;
        this.bzjbl = bzjbl;
        this.qzrq = qzrq;
        this.dbfs = dbfs;
        this.dbw = dbw;
        this.zmjz = zmjz;
        this.pgjz = pgjz;
        this.dbdw = dbdw;
        this.fdbdw = fdbdw;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }
    
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "jbh", length = 100)
    public String getJbh()
    {
        return this.jbh;
    }

    public void setJbh( String jbh )
    {
        this.jbh = jbh;
    }

    @Column(name = "je", precision = 18)
    public BigDecimal getJe()
    {
        return this.je;
    }

    public void setJe( BigDecimal je )
    {
        this.je = je;
    }

    @Column(name = "bzjbl", precision = 53, scale = 0)
    public Double getBzjbl()
    {
        return this.bzjbl;
    }

    public void setBzjbl( Double bzjbl )
    {
        this.bzjbl = bzjbl;
    }

    @Column(name = "qzrq", length = 40)
    public String getQzrq()
    {
        return this.qzrq;
    }

    public void setQzrq( String qzrq )
    {
        this.qzrq = qzrq;
    }

    @Column(name = "dbfs", length = 50)
    public String getDbfs()
    {
        return this.dbfs;
    }

    public void setDbfs( String dbfs )
    {
        this.dbfs = dbfs;
    }

    @Column(name = "dbw", length = 100)
    public String getDbw()
    {
        return this.dbw;
    }

    public void setDbw( String dbw )
    {
        this.dbw = dbw;
    }

    @Column(name = "zmjz", precision = 18)
    public BigDecimal getZmjz()
    {
        return this.zmjz;
    }

    public void setZmjz( BigDecimal zmjz )
    {
        this.zmjz = zmjz;
    }

    @Column(name = "pgjz", precision = 18)
    public BigDecimal getPgjz()
    {
        return this.pgjz;
    }

    public void setPgjz( BigDecimal pgjz )
    {
        this.pgjz = pgjz;
    }

    @Column(name = "dbdw", length = 50)
    public String getDbdw()
    {
        return this.dbdw;
    }

    public void setDbdw( String dbdw )
    {
        this.dbdw = dbdw;
    }

    @Column(name = "fdbdw", length = 50)
    public String getFdbdw()
    {
        return this.fdbdw;
    }

    public void setFdbdw( String fdbdw )
    {
        this.fdbdw = fdbdw;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
